package com.zjh.photoshopstudy.Model;

import java.util.Date;

/**
 * @Author WYX
 * @Description 评论实体类
 * @Date 2019/11/17 3:39
 */
public class CommentEntity extends BaseEntity {

    /**
     * 父节点id
     */
    private Integer cParentId;

    /**
     * 用户信息
     */
    private AppUserEntity cAppUserEntity;

    private VideoEntity cVideoEntity;

    /**
     * 内容
     */
    private String cContent;

    /**
     * 更新时间
     */
    private Date cUpdateTime;


    /**
     * for dtgrid
     * app for reply
     */
    private String userName;

    /**
     * 如果是评论的话:视频用户的id
     * 如果是回复:回复评论主的id
     */
    private int replyId;

    public Integer getcParentId() {
        return cParentId;
    }

    public void setcParentId(Integer cParentId) {
        this.cParentId = cParentId;
    }

    public AppUserEntity getAppUserEntity() {
        return cAppUserEntity;
    }

    public void setAppUserEntity(AppUserEntity cAppUserEntity) {
        this.cAppUserEntity = cAppUserEntity;
    }

    public String getcContent() {
        return cContent;
    }

    public void setcContent(String cContent) {
        this.cContent = cContent;
    }

    public AppUserEntity getcAppUserEntity() {
        return cAppUserEntity;
    }

    public void setcAppUserEntity(AppUserEntity cAppUserEntity) {
        this.cAppUserEntity = cAppUserEntity;
        this.userName = cAppUserEntity.getuName();
    }

    public VideoEntity getcVideoEntity() {
        return cVideoEntity;
    }

    public void setcVideoEntity(VideoEntity cVideoEntity) {
        this.cVideoEntity = cVideoEntity;
    }

    public Date getcUpdateTime() {
        return cUpdateTime;
    }

    public void setcUpdateTime(Date cUpdateTime) {
        this.cUpdateTime = cUpdateTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getReplyId() {
        return replyId;
    }

    public void setReplyId(int replyId) {
        this.replyId = replyId;
    }

    @Override
    public String toString() {
        return "CommentEntity{" +
                "cParentId=" + cParentId +
                ", cAppUserEntity=" + cAppUserEntity.toString() +
                ", cVideoEntity=" + cVideoEntity +
                ", cContent='" + cContent + '\'' +
                ", cUpdateTime=" + cUpdateTime +
                ", id=" + id +
                ", createTime=" + createTime +
                '}';
    }
}
